//
//  M4BankInfoConfirmView.swift
//  M4
//
//  Created by YuChuang on 2024/8/15.
//

import UIKit

class M4BankInfoConfirmView: UIView {

    @IBOutlet weak var M4BankName: UILabel!
    
    @IBOutlet weak var M4BankType: UILabel!
    
    @IBOutlet weak var M4BankNumber: UILabel!
    
    @IBOutlet weak var M4DecriptionView: M4DecriptionStringView!
    var M4BankInfoConfirmBlock: (() -> Void)?
    
    override func awakeFromNib() {
        self.frame = CGRect(x: 0, y: 0, width: M4ScreenWidth, height: M4ScreenHeight)
    }
    
    func M4BankInfoUpdate(name: String, type: String, number: String) {
        M4BankName.text = name
        M4BankType.text = type
        M4BankNumber.text = number
    }
    
    @IBAction func M4BankConfirmClick(_ sender: UIButton) {
        M4AlertViewHidden()
        M4BankInfoConfirmBlock?()
        sender.M4EventUnavailable = false
    }
    
    @IBAction func M4BankModifyClick(_ sender: UIButton) {
        M4AlertViewHidden()
        sender.M4EventUnavailable = false
    }
    
    
}
